import 'package:flutter/material.dart';

class HomeAd extends StatelessWidget {
  HomeAd({super.key, required this.adList});

  List adList = [];

  @override
  Widget build(BuildContext context) {
    return adList.isNotEmpty
        ? Padding(
            padding: const EdgeInsets.only(top: 5, bottom: 5),
            child: Image.network('${adList[0]['imgUrl']}'),
          )
        : Container();
  }
}
